<include file="Finance:leftmenu" />
<div class="content-right fl">
    <h1 class="content-right-title">报单记录</h1>
    <div class="tablesWrap">
        <form action="" method="get" name="form1">
            <div class="tables-searchbox">
                <input type="text" class="input" name="order_id" id="order_id" value="<?php echo get('order_id');?>" placeholder="订单ID">
                <input type="text" class="input" name="user_id" id="user_id" value="<?php echo get('user_id');?>" placeholder="用户ID">
                <button class="btn btn-primary"><i class="gicon-search white"></i>查询</button>
                <a href="/admin/finance/baodanlog" class="btn btn-warning">清除查询</a>
                
<a class="btn btn-success " href="javascript:excel();"><i class="gicon-share white"></i>导出</a>

                <input type="hidden" name="action" value="">
            </div>
        </form>
  
        
        <table class="wxtables">
         	<colgroup>
                <col width="5%">
               <col width="5%">
               <col width="6%">
               <col width="6%">
                <col width="6%">
                <col width="6%">
                <col width="6%">
                <col width="5%">
                <col width="5%">
            </colgroup>
            <thead>
            <tr>
                <td>订单ID</td>
                <td>用户ID</td>
                <td>用户昵称</td>
                <td>描述</td>
                <td>金额</td>            
                <td>创建时间</td>
                <td>操作人</td>
            </tr>
            </thead>
            <tbody>
            
            
<?php foreach($datalist as $k=>$v){ ?>
            <tr>
                <td><a style="color:blue;" href="/admin/order/index/status/7?order_id=<?php echo $v['order_id'];?>"><?php echo $v['order_id'];?></a></td>
                <td><a style="color:blue;" href="/admin/member/index?user_id=<?php echo $v['uid'];?>" target="_blank"><?php echo $v['uid'];?></a></td>
                <td><?php echo emoji_unified_to_html($v['nickname']);?></td>
                <td><?php echo $v['order_type']==1?'报单':'重复进货';?></td>
                <td><?php echo $v['pay_orgmoney'];?></td>
                <td><?php echo $v['order_time'] ? $v['order_time'] : $v['create_time'];?></td>
                <td><?php echo $v['manager_username'];?></td>
                

</tr>
<?php } ?>                         
                         
                            </tbody>
        </table>
	<div class="tables-btmctrl clearfix">
           <div class="mgt10">
               <div class="paginate">
                  {$page}
               </div>
           </div>
	</div>
    </div>

</div>

